package com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.cmdb;

import com.glsc.ngateway.common.base.domain.mysql.gateway.FlowFormBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author zhengyr
 * @date 2023/8/9-9:23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@SuperBuilder
@Entity
@Where(clause = "deleted = 0")
@SQLDelete(sql = "update t_gw_flow_form_device_out set deleted = UNIX_TIMESTAMP(NOW()) where id=?")
@SQLDeleteAll(sql = "update t_gw_flow_form_device_out set deleted = UNIX_TIMESTAMP(NOW()) where id=?")
@Table(name = "t_gw_flow_form_device_out")
@org.hibernate.annotations.Table(appliesTo = "t_gw_flow_form_device_out", comment = "设备入库流程表单")

public class FlowFormDeviceOut extends FlowFormBaseEntity {
    @Column(name = "appendices_file_id_list", columnDefinition = "Text comment '附件'")
    private String appendicesFileIdList;
}
